package com.ctshk.rpc.goods.dto;

import com.ctshk.rpc.goods.dto.htmlFive.CommodityCostAttributeDTO;
import com.ctshk.rpc.goods.dto.resp.CommodityCostResp;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.List;

/**
 * <p>
 * 题商品明细-DTO参数
 * </p>
 *
 * @author 姜斌文
 * @since 2021-04-15
 */
@Data
@ApiModel(value = "CommodityPageDTO对象", description = "商品分页列表")
public class ShoppingSpecialCommodityDTO implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "商品ID")
    private Long id;

    @ApiModelProperty(value = "商品名称")
    private String commodityName;

    @ApiModelProperty(value = "文件url")
    private String fileUrl;

    @ApiModelProperty(value = "售价")
    private BigDecimal costPrice;

    @ApiModelProperty(value = "sku库存")
    private Integer stock;

    @ApiModelProperty(value = "规格类型：1：单规格；2：多规格")
    private Integer specificationsType;

    @ApiModelProperty(value = "商品属性id")
    private Long attributeId;

    @ApiModelProperty(value = "商品成本")
    private List<CommodityCostResp> commodityCostResps;

    @ApiModelProperty(value = "商品成本表参数对象")
    private List<CommodityCostAttributeDTO> commodityCostAttributeDTOS;


}
